package com.cjy.runnable.demo2;

/**
 * @author Cheng JiYe
 * @description: //实现Runnable接口
 * @date 2021/4/24 23:28
 */
public class MyThread2 implements Runnable {
  public void run() {
    for (int i = 0; i < 3; i++) {
      // 取得当前线程的名称
      System.out.println(Thread.currentThread().getName() + "运行, i=" + i);
    }
  }
}
